﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ClientDetails.aspx.cs"
    Inherits="Tesla.Web.Pages.ClientDetails" MasterPageFile="~/Pages/Tesla.Master"%>

    
<asp:Content ID ="MainContent" ContentPlaceHolderID="MainContent" runat="server">
<script type="text/javascript">
</script>

   
      
        <asp:Panel ID="pnl1" Width="80%" CssClass="Tesla_Standard_BigPanelHeading" runat="server">
            <fieldset>
                <legend class="Tesla_Standard_BigPanelHeading" id="Legend1" runat="server">Add Client</legend>
                <asp:Panel ID="Panel1" CssClass="Tesla_Standard_PanelHeading" Width="100%" runat="server">
                    <fieldset>
                        <legend class="Tesla_Standard_PanelHeading" id="Legend2" runat="server">Details</legend>
                        <table width="100%"  cellspacing="0px">
                            
                            <tr>
                                <td class="style1">
                                    <asp:Label ID="lblClientName" CssClass="Tesla_Standard_Label" runat="server" 
                                        Text="Client Name:"></asp:Label>                                    
                                </td>
                                <td style="width: 30%" align="left">
                                    <CustomUtil:TeslaTextBox ID="txtClientName"  CssClass="textboxStyle"
                                        runat="server" MaxLength="100" Text="" Style="margin-left: 0px; font-family: Arial; font-size: 11px;
                                        color: #002664" Width="441px"></CustomUtil:TeslaTextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label CssClass="Tesla_Standard_Label" ID="lblClientParentName" runat="server" 
                                        Text="Client Parent Name:"></asp:Label>                                    
                                </td>
                                <td style="width: 30%" align="left">
                                    <asp:DropDownList ID="ddlClientParentName"  CssClass="Tesla_Standard_DropDownList"
                                        runat="server" MaxLength="100" Style="margin-left: 0px; font-family: Arial; font-size: 11px;
                                        color: #002664" Width="441px"></asp:DropDownList>
                                </td>
                            </tr>
                            
                            <tr>
                                <td>
                                    <asp:Label CssClass="Tesla_Standard_Label" ID="lblClientGeo" runat="server" 
                                        Text="Geo:"></asp:Label>                                    
                                </td>
                                <td style="width: 30%" align="left">
                                    <CustomUtil:TeslaTextBox ID="txtClientGeo"  CssClass="textboxStyle"
                                        runat="server" MaxLength="100" Text="" Style="margin-left: 0px; font-family: Arial; font-size: 11px;
                                        color: #002664" Width="441px"></CustomUtil:TeslaTextBox>
                                </td>
                            </tr>
                            
                                                       
                            <tr>
                                <td>
                                    <asp:Label CssClass="Tesla_Standard_Label" ID="lblClientOperatingUnit" runat="server" 
                                        Text="Operating Unit:"></asp:Label>                                    
                                </td>
                                <td style="width: 30%" align="left">
                                    <asp:DropDownList ID="ddlClientOperatingUnit"  CssClass="Tesla_Standard_DropDownList"
                                        runat="server" MaxLength="100" Style="margin-left: 0px; font-family: Arial; font-size: 11px;
                                        color: #002664" Width="441px"></asp:DropDownList>
                                </td>
                            </tr> 
                            
                            <tr>
                                <td>
                                    <asp:Label CssClass="Tesla_Standard_Label" ID="Label1" runat="server" 
                                        Text="Projects:"></asp:Label>                                    
                                </td>
                                <td style="width: 30%" align="left">
                                    <CustomUtil:TeslaDataGrid ID="grdProjects" runat="server" Style="left: 10px; width: 100%"
                                        AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None"
                                        AllowPaging="true" AllowSorting="True" Font-Size="11px" Font-Strikeout="False"
                                        >
                                        <FooterStyle Font-Bold="True" ForeColor="White" />
                                        <RowStyle BackColor="#E3EAEB" HorizontalAlign="Center" />
                                        <Columns>
                                            <asp:BoundField ItemStyle-Font-Bold="false" ItemStyle-Width="10%" DataField="ProjectCode" 
                                                HeaderText="Project Code" HeaderStyle-ForeColor="#00338D" />
                                            <asp:BoundField ItemStyle-Font-Bold="false" ItemStyle-Width="10%" DataField="ProjectBillingType"
                                                HeaderText="Billing Type" HeaderStyle-ForeColor="#00338D" />
                                            <asp:BoundField ItemStyle-Font-Bold="false" ItemStyle-Width="10%" DataField="ProjectType"
                                                HeaderText="Type" HeaderStyle-ForeColor="#00338D" />
                                            <asp:BoundField ItemStyle-Font-Bold="false" ItemStyle-Width="10%" DataField="ProjectPlannedStartDate"
                                                HeaderText="Planned Start Date" HeaderStyle-ForeColor="#00338D" />
                                            <asp:BoundField ItemStyle-Font-Bold="false" ItemStyle-Width="10%" DataField="ProjectPlannedEndDate"
                                                HeaderText="Planned End Date" HeaderStyle-ForeColor="#00338D" />
                                            <asp:BoundField ItemStyle-Font-Bold="false" ItemStyle-Width="10%" DataField="ProjectCompletionPct"
                                                HeaderText="CompletionPct" HeaderStyle-ForeColor="#00338D" />
                                        </Columns>
                                        <PagerStyle Font-Bold="true" HorizontalAlign="Center" />
                                        <SelectedRowStyle Font-Bold="True" />
                                        <HeaderStyle CssClass="Tesla_Standard_HeaderStyle" />
                                        <EditRowStyle HorizontalAlign="Center" />
                                        <AlternatingRowStyle BorderColor="#006375" BorderWidth="1px" />
                                    </CustomUtil:TeslaDataGrid>

                                </td>
                            </tr>                                       
                            
                        </table>
                    </fieldset></asp:Panel>
                <table style=" width: 100%">
                    <tr>
                        <td align="right" style="width: 70%">
                            <asp:Button ID="btnSave" runat="server" Text="Save" CssClass="Tesla_Standard_Button"
                                OnClick="btnSave_Click" />
                            <asp:Button ID="btnCancel" runat="server" Text="Cancel" CssClass="Tesla_Standard_Button"
                               OnClick="btnCancel_Click" />
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
            </fieldset>
        </asp:Panel>
    

</asp:Content>
